import {Server} from '../config';
export function route(config: { path: string, method: string }) {
    return (target: any, name: string, value: PropertyDescriptor) => {
        Server.__Routers.set(
            {
                target: new target.constructor(),
                path: config.path,
                method: config.method
            }, target[name]
        )
    }
}